
// 办理离职
export const BLLZ = [
  { fieldName: '发起人', field: 'employeeId', fieldType: 3, fileldValue: 1 },
  { fieldName: '发起人部门', field: 'departmentId', fieldType: 3, fileldValue: 2, isDisabled: true },
  { fieldName: '入职日期', field: 'hireDate', fieldType: 4, isDisabled: true },
  { fieldName: '申请离职日期', field: 'leaveDate', fieldType: 4 },
  { fieldName: '计划离职日期', field: 'plannedLeaveDate', fieldType: 4 },
  { fieldName: '离职原因', field: 'leaveReasons', fieldType: 3, fileldValue: 3 },
  { fieldName: '请写出对公司的3点建议', field: 'proposal', fieldType: 2 },
  // { fieldName: '手写签字', field: 'faqiren8', fieldType: 6 },
];
export const BLLZ_Rules = {
  employeeId: [
    { required: true, message: '请选择发起人', trigger: 'change' }
  ],
  departmentId: [
    { required: true, message: '请选择发起人部门', trigger: 'change' }
  ],
  hireDate: [
    { required: true, message: '请选择入职日期', trigger: 'change' }
  ],
  leaveDate: [
    { required: true, message: '请选择申请离职日期', trigger: 'change' }
  ],
  plannedLeaveDate: [
    { required: true, message: '请选择计划离职日期', trigger: 'change' }
  ],
  leaveReasons: [
    { required: true, message: '请输入离职原因', trigger: 'blur' },
  ],
  proposal: [
    { required: true, message: '请写出对公司的3点建议', trigger: 'blur' },
  ],
};

// 办理入职
export const BLRZ = [
  { fieldName: '新员工姓名', field: 'faqiren1', fieldType: 1 },
  { fieldName: '新员工手机号', field: 'faqiren2', fieldType: 1 },
  { fieldName: '新员工性别', field: 'faqiren3', fieldType: 5 },
  { fieldName: '入职工作性质', field: 'faqiren4', fieldType: 3 },
  { fieldName: '入职部门', field: 'faqiren5', fieldType: 3 },
  { fieldName: '入职岗位', field: 'faqiren6', fieldType: 1 },
  { fieldName: '预计入职日期', field: 'faqiren7', fieldType: 4 },
  { fieldName: '汇报上级', field: 'faqiren8', fieldType: 3 },
  { fieldName: '试用期开始日期', field: 'faqiren9', fieldType: 4 },
  { fieldName: '试用期结束日期', field: 'faqiren10', fieldType: 4 },
  { fieldName: '岗位职责', field: 'faqiren11', fieldType: 2 },
  { fieldName: '薪资说明', field: 'faqiren12', fieldType: 2 },
  { fieldName: '所在部门', field: 'faqiren13', fieldType: 2 },
];

// 办理转正
export const BLZZ = [
  { fieldName: '申请人', field: 'employeeId', fieldType: 3, fileldValue: 1 },
  { fieldName: '申请人部门', field: 'departmentId', fieldType: 3, fileldValue: 2, isDisabled: true },
  { fieldName: '入职日期', field: 'hireDate', fieldType: 4, isDisabled: true },
  { fieldName: '实际转正日期', field: 'positiveDate', fieldType: 4, isDisabled: false },
  { fieldName: '试用期内主要工作和成绩', field: 'mainWork', fieldType: 2 },
  { fieldName: '存在问题及改进意见', field: 'problemIdea', fieldType: 2 },
  { fieldName: '对公司的意见和建议', field: 'companyIdea', fieldType: 2 },
  { fieldName: '备注', field: 'remark', fieldType: 2 },
  { fieldName: '文件上传', field: 'files', fieldType: 7 },
];
export const BLZZ_Rules = {
  employeeId: [
    { required: true, message: '请选择申请人', trigger: 'change' }
  ],
  departmentId: [
    { required: true, message: '请选择申请人部门', trigger: 'change' }
  ],
  positiveDate: [
    { required: true, message: '请选择实际转正日期', trigger: 'change' }
  ],
  // mainWork: [
  //   { required: true, message: '请输入试用期内主要工作和成绩', trigger: 'blur' },
  // ],
  // problemIdea: [
  //   { required: true, message: '请输入存在问题及改进意见', trigger: 'blur' },
  // ],
  // companyIdea: [
  //   { required: true, message: '请输入对公司的意见和建议', trigger: 'blur' },
  // ],
};

// 办理调动
export const BLDD = [
  { fieldName: '发起人', field: 'employeeId', fieldType: 3, fileldValue: 1 },
  { fieldName: '异动类型', field: 'changeType', fieldType: 3, fileldValue: 4 },
  { fieldName: '调入部门', field: 'newDepartmentId', fieldType: 3, fileldValue: 2 },
  { fieldName: '调入岗位', field: 'newPostName', fieldType: 1 },
  { fieldName: '新岗位职位', field: 'newPositionLevel', fieldType: 3, fileldValue: 6 },
  { fieldName: '新合同公司', field: 'newCompanyId', fieldType: 3, fileldValue: 7 },
  { fieldName: '新工作地点', field: 'newWorkAddress', fieldType: 3, fileldValue: 5 },
  { fieldName: '生效日期', field: 'commencementDate', fieldType: 4 },
  { fieldName: '备注', field: 'remark', fieldType: 2 },
];
export const BLDD_Rules = {
  employeeId: [
    { required: true, message: '请选择发起人', trigger: 'change' }
  ],
  commencementDate: [
    { required: true, message: '请选择生效日期', trigger: 'change' }
  ],

};
